<template>
  <div class="homepage">
<!--    导航-->
<!--    <home-header :userinfo="userInfo"></home-header>-->
<!--    个人中心-->
<!--    <home-index></home-index>-->
<!--    底部-->
<!--    <div class="h_foot">-->
<!--    <foot></foot>-->
<!--    </div>-->

      <div class="ba_line"></div>
      <div class="container">
        <el-container>
          <el-header>
            <!-- 头部导航 -->
                <home-header  @change="handleChange" :routerpath="routerPath"></home-header>
          </el-header>
          <el-main>
            <router-view></router-view>
          </el-main>
          <el-footer>
            <!--    底部-->
                <div class="h_foot">
                <home-foot></home-foot>
                </div>
          </el-footer>
        </el-container>
    </div>
  </div>
</template>

<script>
/* eslint-disable  */
import homeHeader from '@/views/components/common/home-header'
import homeIndex from '@/views/components/home/home-index'
import homeFoot from '@/views/components/foot/foot'

export default {
  name: 'home',
  components: {
    homeHeader,homeIndex, homeFoot
  },
  data (){
    return {
      routerPath:'',
      userInfo:{}
    }
  },
  created () {
    this.routerPath = this.$route.path
    console.log('当前路由home：',this.routerPath)
    this.init()
  },
  mounted () {
  },
  methods: {
    // 初始化 user
    init () {
      const myCachedData = localStorage.getItem('userInfo');
      this.userInfo = JSON.parse(myCachedData)
      console.log( 'home-userInfo: ',this.userInfo); // john
    },
    handleChange(){

      this.common.loginOut()
      this.$message({
        type:'success',
        message: '退出成功！'
      })
      this.$router.push({name:'defualt'})
      // this.common.handleToNewTab('/')
    }
  }
}
</script>

<style scoped>

/* element s  */
.container .el-header{
  padding: 0;
  height: 57px!important;
}
/* .homepage .ba_line{ */
/*   height: 1px; */
/*   position: relative; */
/*   top: 57px; */
/*   border-bottom: 1px #eaeaea solid; */
/* } */
.el-header, .el-footer {
  background-color: #fff;
  color: #333;
  text-align: center;
/* line-height: 60px; */
}
.el-main {
  padding: 0;
/* background-color: #E9EEF3; */
/* color: #333; */
/* text-align: center; */
/* line-height: 160px; */
}
/* element e  */
.h_foot{
  /* width: 1080px; */
  /* margin: 0 auto; */
  /* height: 262px; */
  /* position: relative; */
  /* bottom: 0; */
}
.center {
  width: 1080px;
  margin: 0 auto
}

.resume-popover {
  padding: 0;
  width: 328px
}

.resume-popover .media {
  padding: 23px 20px 30px;
  display: flex;
  align-items: center
}

.resume-popover .media__left {
  flex: 0 0 40px;
  height: 50px
}

.resume-popover .media__body {
  margin-left: 13px;
  flex: 1 1
}

.resume-popover .media__header {
  width: 243px;
  font-size: 18px;
  color: #252527;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.resume-popover .media__content {
  font-size: 12px;
  line-height: 16px;
  color: #A0A0A2;
  margin-top: 8px
}

.resume-popover .media__object {
  background: url(https://sxsimg.xiaoyuanzhao.com/static_sxs/dist/desktop/dist/client/img/pdf.8b66485.png) center/contain no-repeat;
  height: 100%
}

.resume-popover .popover-footer {
  padding: 16px 25px;
  text-align: right;
  border-top: 1px solid #e8e8ea
}

.resume-popover .popover-footer .el-button--text {
  padding: 0;
  color: #A0A0A2
}

.personal-info{
  background-color: #fff;
  margin-top: 17px;
  letter-spacing: 0;
  font-size: 0
}

.personal-info .info-item{
  height: 184px;
  display: inline-block;
  vertical-align: top;
  color: #252527;
  box-sizing: border-box;
  position: relative
}

.personal-info .info1,.personal-info .info3{
  width: 360px
}

.personal-info .calendar-today{
  margin: 17px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.personal-info .calendar-today .calendar-title{
  font-size: 16px;
  font-weight: 400;
  color: #252527;
  line-height: 22px
}

.personal-info .calendar-today .calendar-more{
  font-size: 14px;
  font-weight: 400;
  color: #6aa2e4;
  line-height: 20px;
  cursor: pointer
}

.personal-info .calendar-wrap{
  box-sizing: border-box;
  padding: 0 32px;
  justify-content: space-between;
  display: flex;
  margin-top: 4px
}

.personal-info .calendar-wrap .calendar-left{
  width: 83px;
  height: 99px;
  background: url(https://sxsimg.xiaoyuanzhao.com/static_sxs/dist/desktop/dist/client/img/icon_calendar_small.cdf214f.png) no-repeat;
  background-size: 100% 100%;
  box-sizing: border-box;
  margin-right: 12px;
  display: flex;
  flex-shrink: 0;
  flex-direction: column
}

.personal-info .calendar-wrap .calendar-left .calendar-month{
  padding-top: 30px;
  font-size: 10px;
  transform: scale(0.83333);
  font-weight: 400;
  color: #899bbc;
  line-height: 14px;
  text-align: center
}

.personal-info .calendar-wrap .calendar-left .calendar-day{
  margin-top: 2px;
  font-size: 32px;
  font-weight: bold;
  color: #1c3d79;
  line-height: 32px;
  text-align: center
}

.personal-info .calendar-wrap .calendar-right{
  box-sizing: border-box;
  width: 200px
}

.personal-info .calendar-wrap .calendar-right .calendar-item{
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin-bottom: 16px
}

.personal-info .calendar-wrap .calendar-right .calendar-item .calendar-icon{
  width: 16px;
  height: 16px;
  margin-right: 8px
}

.personal-info .calendar-wrap .calendar-right .calendar-item .calendar-text{
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: #4c5c4e;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap
}

.personal-info .calendar-wrap .calendar-right .nodata{
  font-size: 14px;
  font-weight: 400;
  color: #c0c0c1;
  text-align: center;
  line-height: 82px
}

.personal-info .info2{
  width: 720px
}

.personal-info .info4,.personal-info .info5{
  width: 359px
}

.personal-info .info5{
  border-left: 1px dashed #e8e8ea
}

.personal-info .info1{
  padding: 48px 0 0 144px
}

.personal-info .info1 .head{
  position: absolute;
  top: 48px;
  left: 32px
}

.personal-info .info1 .name{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  line-height: 31px
}

.personal-info .info1 .phonenumber{
  font-size: 18px;
  line-height: 24px;
  margin: 10px 0 14px
}

.personal-info .info1 .link-options{
  font-size: 14px;
  line-height: 19px
}

.personal-info .info1 .link-options>a{
  display: inline-block;
  padding-left: 21px;
  color: #cdcdcf;
  background: left center/16px no-repeat
}

.personal-info .info1 .link-options .change-password{
  background-image: url(https://sxsimg.xiaoyuanzhao.com/static_sxs/dist/desktop/dist/client/img/change-password-icon.52d6038.png)
}

.personal-info .info1 .link-options .account-bind{
  background-image: url();
  margin-left: 18px
}

.personal-info .info2{
  padding: 24px 32px
}

.personal-info .info2 .title-box{
  display: flex;
  justify-content: space-between;
  align-items: center
}

.personal-info .info2 .title{
  font-size: 18px;
  color: #252527
}

.personal-info .info2 .title .tip{
  margin-left: 10px;
  font-size: 12px;
  color: #a0a0a2
}

.personal-info .info2 .title .c-blue{
  color: #6AA2E4;
  cursor: pointer;
  text-decoration: underline
}

.personal-info .info2 .complete-resume-btn{
  font-size: 14px;
  color: #6AA2E4
}

.personal-info .info2 .content-box{
  margin-top: 16px;
  display: flex;
  justify-content: space-between
}

.personal-info .info2 .content-box .resume{
  box-sizing: border-box;
  flex-grow: 0;
  width: 202px;
  height: 96px;
  background-color: #F8F8FA;
  padding: 16px 12px 0 12px;
  cursor: pointer
}

.personal-info .info2 .content-box .resume__header{
  font-size: 14px;
  display: flex;
  justify-content: space-between
}

.personal-info .info2 .content-box .resume__edit{
  color: #A0A0A2
}

.personal-info .info2 .content-box .resume__title{
  color: #4C4C4E
}

.personal-info .info2 .content-box .resume__body{
  margin-top: 8px;
  font-size: 12px
}

.personal-info .info2 .content-box .resume__footer{
  margin-top: 8px;
  font-size: 12px;
  color: #CDCDCF
}

.personal-info .info2 .content-box .resume--online .progress{
  display: flex;
  line-height: 13px;
  justify-content: space-between;
  align-items: center
}

.personal-info .info2 .content-box .resume--online .progress__bar-wrap{
  flex: 0 0 140px;
  height: 8px;
  background-color: #ebeef5;
  border-radius: 100px
}

.personal-info .info2 .content-box .resume--online .progress__bar{
  background-color: #6AA2E4;
  border-radius: 100px;
  height: 100%
}

.personal-info .info2 .content-box .resume--online .progress__text{
  font-size: 12px;
  color: #4C4C4E
}

.personal-info .info2 .content-box .resume--online .resume__body{
  margin-top: 10px
}

.personal-info .info2 .content-box .resume--online .resume__footer{
  margin-top: 11px
}

.personal-info .info2 .content-box .resume--resource .resume__body{
  color: #A0A0A2
}

.personal-info .info2 .content-box .resume--resource .resume__body .icon-htmal5icon21{
  float: right
}

.personal-info .info2 .content-box .resume--resource .resume__body .word-icon{
  display: inline-block;
  font-size: 12px
}

.personal-info .info2 .content-box .resume .tip{
  margin-top: 5px;
  color: #a0a0a2;
  font-size: 12px;
  line-height: 20px
}

.personal-info .info3-box{
  display: flex;
  justify-content: space-around;
  text-align: center
}

.personal-info .info3-box .num{
  color: #4C4C4E;
  font-size: 24px;
  line-height: 31px
}

.personal-info .info3-box span{
  display: block;
  color: #a0a0a2;
  font-size: 14px;
  line-height: 19px;
  margin-top: 16px;
  position: relative
}

.personal-info .info3-box span i{
  width: 6px;
  height: 6px;
  position: absolute;
  top: -1px;
  right: -7px;
  background-color: #f24724;
  border-radius: 3px
}

.personal-info .info4,.personal-info .info5{
  padding: 24px 32px 0 32px;
  font-size: 14px
}

.personal-info .info4 .title-box,.personal-info .info5 .title-box{
  font-size: 18px;
  line-height: 24px
}

.personal-info .info4 .title-box .edit-btn,.personal-info .info5 .title-box .edit-btn{
  color: #6AA2E4;
  font-size: 14px
}

.personal-info .info4 .info-list .list-item,.personal-info .info5 .info-list .list-item{
  padding-right: 20px;
  line-height: 19px;
  margin-top: 12px;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}

.personal-info .info4 .info-list .list-item span,.personal-info .info5 .info-list .list-item span{
  color: #4C4C4E
}

.personal-info .info4 .info-list .list-item .item-name,.personal-info .info5 .info-list .list-item .item-name{
  color: #a0a0a2
}

.personal-info .bb{
  border-bottom: 1px dashed #e8e8ea
}

.personal-info .br{
  border-right: 1px dashed #e8e8ea
}

.recommend-job{
  margin-top: 17px;
  background-color: #fff
}

.recommend-job__header{
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8ea
}

.recommend-job__title{
  font-size: 18px;
  color: #252527
}

.recommend-job__caption{
  margin-top: 10px;
  font-size: 14px;
  color: #cdcdcf
}

.recommend-job__more{
  color: #6AA2E4
}

.recommend-job__detail-wrap{
  padding: 0 32px
}

.recommend-job__detail-wrap:hover {
  background-color: #F8F8FA
}

.recommend-job__detail-wrap:not(:last-of-type) .recommend-job__detail{
  border-bottom: 1px dashed #e8e8ea
}

.recommend-job__detail{
  height: 112px;
  display: flex;
  align-items: center
}

.recommend-job__detail--viewed .job__name{
  color: #A0A0A2
}

.recommend-job__detail .job{
  flex: 1 1 540px
}

.recommend-job__detail .job .secondary span:not(:last-of-type)::after {
  content: ' | '
}

.recommend-job__detail .job__name:visited {
  color: #A0A0A2
}

.recommend-job__detail .job__wage{
  margin-left: 16px;
  color: #fd8150
}

.recommend-job__detail .company{
  flex: 1 1 540px
}

.recommend-job__detail .company__name{
  color: #6AA2E4
}

.recommend-job__detail .company__label{
  height: 18px;
  margin-left: 5px
}

.recommend-job__detail .logo-wrap{
  display: inline-flex;
  flex: 0 0 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e8ea
}

.recommend-job__detail .logo-wrap .company__logo{
  max-width: 100%;
  max-height: 100%
}

.recommend-job__detail .primary{
  display: flex;
  align-items: center;
  font-size: 17px;
  color: #252527
}

.recommend-job__detail .primary a{
  max-width: 300px;
  display: inline-block
}

.recommend-job__detail .secondary{
  margin-top: 16px;
  color: #a0a0a2
}

.recommend-job .recommend-job__list{
  margin-bottom: 50px
}

.recommend-job .recommend-job__list .recommend-job__detail-wrap{
  position: relative
}

.recommend-job .recommend-job__list .recommend-job__detail-wrap .xz_icon{
  width: 40px;
  position: absolute;
  left: 0;
  top: 0
}

.recommend-job .recommend-job__list .no-data-wrap{
  padding: 187px 0 225px;
  text-align: center
}

.recommend-job .recommend-job__list .btn{
  display: inline-block;
  width: 136px;
  line-height: 40px;
  background-color: #6AA2E4;
  border-radius: 4px;
  font-size: 16px;
  color: #fff
}

.recommend-job .recommend-job__list .tip{
  margin-top: 16px;
  color: #a0a0a2;
  font-size: 12px
}

.avatar-wrap {
  width: 88px;
  height: 88px
}

.avatar {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 50%
}

.avatar:hover .avatar-upload {
  opacity: 1
}

.avatar img {
  width: 100%;
  height: 100%
}

.avatar .avatar-upload {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.5) url(https://sxsimg.xiaoyuanzhao.com/static_sxs/dist/desktop/dist/client/img/head-upload.ff4986e.png) center/26px no-repeat;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s
}

.cropper-wrapper {
  height: 300px
}

.job-intention-dialog {
  color: #252527
}

.job-intention-dialog .el-dialog__header {
  border-bottom: 1px solid rgba(0,0,0,0.09)
}

.job-intention-dialog .el-dialog__body {
  padding: 32px 145px 32px 0
}

.job-intention-dialog .title {
  text-align: center;
  font-size: 18px
}

.job-intention-dialog .el-form-item__label {
  font-size: 16px;
  text-align: right;
  -moz-text-align-last: right;
  text-align-last: right
}

.job-status-dialog {
  color: #252527
}

.job-status-dialog .el-dialog__header {
  border-bottom: 1px solid rgba(0,0,0,0.09)
}

.job-status-dialog .el-dialog__body {
  padding: 32px 145px 32px 0
}

.job-status-dialog .title {
  text-align: center;
  font-size: 18px
}

.job-status-dialog .el-form-item__label {
  font-size: 16px;
  text-align: right;
  -moz-text-align-last: right;
  text-align-last: right
}

.resume-lan-type-btn[data-v-e0fb8576] {
  margin-right: 20px;
  padding: 5px 20px;
  background-color: #f8f8fa;
  color: #4c4c4e;
  cursor: pointer;
}

.active[data-v-e0fb8576] {
  background-color: #108ee9;
  color: #fff;
}

.title-btn[data-v-e0fb8576] {
  margin-left: 20px;
}

.tip[data-v-e0fb8576] {
  margin-top: 13px;
  color: rgba(0, 0, 0, 0.65);
}

.upload-file {
  display: inline-block
}

.footer {
  width: 100%;
  position: relative;
  z-index: 3;
  overflow: hidden;
  color: #000;
  padding-top: 30px;
  padding-bottom: 22px;
  line-height: 1.15;
}

.footer .footer_bgc {
  position: relative;
  background-color: #fafafa;
}

.footer .nav_bottom {
  position: relative;
  height: 204px;
  padding-top: 60px;
  letter-spacing: 0;
  font-size: 0;
  margin-bottom: 30px;
}

.footer .nav_bottom .nav_item {
  position: relative;
  display: inline-block;
  width: 245px;
  vertical-align: top;
}

.footer .nav_bottom .nav_r {
  width: 82px;
  text-align: right;
}

.footer .nav_bottom .nav_item .nav_til {
  position: relative;
  width: 100%;
  display: inline-block;
  font-size: 20px;
  color: #333;
}

.footer .nav_bottom .nav_item .a {
  width: 100%;
  position: relative;
  display: inline-block;
  font-size: 14px;
  padding-top: 14px;
}

.footer .nav_bottom .nav_item .a > a {
  display: inline-block;
  color: #666;
  text-decoration: none;
}

.footer .text_bottom {
  position: relative;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  color: #999;
  display: block;
}

.footer .text_bottom .text > span {
  position: relative;
  padding: 0 15px;
}

.footer .text_bottom .special {
  margin-bottom: 5px;
}

.footer .a_link {
  text-decoration: none;
  color: #666;
}

.footer .nav_bottom .nav_item .a > img {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 44px;
}

.footer .nav_bottom .nav_item .a .mark {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #fff;
  left: -200px;
  top: -50px;
  background-repeat: no-repeat;
  background-position: center;
  display: none;
}

.footer .nav_bottom .nav_item .a .mark_gzh {
  left: -210px;
}

.footer .nav_bottom .nav_item .a .gzh {
  cursor: default;
}

.footer .nav_bottom .nav_item .a .khfw {
  cursor: pointer;
}

.footer .nav_bottom .nav_item .a .android:hover + .mark, .footer .nav_bottom .nav_item .a .ios:hover + .mark, .footer .nav_bottom .nav_item .a .gzh:hover + .mark {
  display: inline-block;
}

.footer .text_bottom .text > i {
  position: relative;
  top: 2px;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.footer .text_bottom .text2 > i {
  position: relative;
  top: 2px;
  display: inline-block;
  width: 16px;
  height: 19px;
  margin-right: 6px;
}

.container {
  /* width: 100%; */
  height: 100%;
  width: 1080px;
  margin: 0 auto;
  position: relative;
}

.marginRight8 {
  margin-right: 8px;
}

.tip_about {
  padding: 4px 0;
}

.tip_about p {
  box-sizing: border-box;
  color: #333;
  font-size: 14px;
  padding-left: 10px;
}

.fixed-wrap .fixed-box {
  width: 60px;
  position: fixed;
  right: 20px;
  bottom: 280px;
  margin: 0 auto;
  z-index: 1999
}

.fixed-wrap .fixed-box .box-item {
  border: 1px solid #eaeaea;
  border-top: 0;
  box-sizing: border-box;
  cursor: pointer
}

.fixed-wrap .fixed-box .box-item:first-of-type {
  border-top: 1px solid #eaeaea
}

.fixed-wrap .fixed-box .resume {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: none;
  background: #6aa2e4;
  border: 0 !important
}

.fixed-wrap .fixed-box .resume .resume_img img {
  width: 26px;
  height: 26px
}

.fixed-wrap .fixed-box .resume .resume_img .resume_text {
  font-size: 12px;
  color: #fff
}

.fixed-wrap .fixed-box .resume .text {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  color: #999;
  display: none
}

.fixed-wrap .fixed-box .resume:hover {
  align-items: center
}

.fixed-wrap .fixed-box .resume:hover .resume_img {
  display: none
}

.fixed-wrap .fixed-box .resume:hover .text {
  color: #fff;
  display: block
}

.fixed-wrap .fixed-box .delivered {
  background: #fff;
  border: 1px solid #eaeaea !important
}

.fixed-wrap .fixed-box .delivered:hover .text {
  color: #999;
  display: block
}

.fixed-wrap .fixed-box .deliver {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff
}

.fixed-wrap .fixed-box .deliver .deliver_img {
  width: 26px;
  height: 26px
}

.fixed-wrap .fixed-box .deliver .deliver_img img {
  width: 100%;
  height: 100%
}

.fixed-wrap .fixed-box .deliver .text {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  color: #999;
  display: none
}

.fixed-wrap .fixed-box .deliver:hover .deliver_img {
  display: none
}

.fixed-wrap .fixed-box .deliver:hover .text {
  display: block
}

.fixed-wrap .fixed-box #kefu {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff
}

.fixed-wrap .fixed-box #kefu .kefu_img {
  width: 26px;
  height: 26px
}

.fixed-wrap .fixed-box #kefu .kefu_img img {
  width: 100%;
  height: 100%
}

.fixed-wrap .fixed-box #kefu .text {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  color: #999;
  display: none
}

.fixed-wrap .fixed-box #kefu:hover .kefu_img {
  display: none
}

.fixed-wrap .fixed-box #kefu:hover .text {
  display: block
}

.fixed-wrap .fixed-box #back_top {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 0
}

.fixed-wrap .fixed-box #back_top .back_img {
  width: 26px;
  height: 26px
}

.fixed-wrap .fixed-box #back_top .back_img img {
  width: 100%;
  height: 100%
}

.fixed-wrap .fixed-box #back_top .text {
  width: 26px;
  height: 26px;
  line-height: 26px;
  color: #999;
  display: none
}

.fixed-wrap .fixed-box #back_top:hover .back_img {
  display: none
}

.fixed-wrap .fixed-box #back_top:hover .text {
  display: block
}

.fixed-wrap .adActivity {
  position: fixed;
  text-align: right;
  bottom: 10px;
  right: 101px;
  z-index: 4
}
</style>
